package com.wbu.estatemanagement.domain;

import com.fasterxml.jackson.annotation.JsonFormat;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Table(name="tb_activity")
public class Activity {

    @Id
    private Integer id; //活动ID

    private String communityName; //社区名称

    private Integer communityId; //所属社区ID

    private String title; //活动标题

    private String address; //活动地点

    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
    private Date startTime; //活动开始时间

    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
    private Date endTime; //活动截止时间

    private String status; //状态:0-活动已结束（默认），1-活动进行中

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCommunityName() {
        return communityName;
    }

    public void setCommunityName(String communityName) {
        this.communityName = communityName;
    }

    public Integer getCommunityId() {
        return communityId;
    }

    public void setCommunityId(Integer communityId) {
        this.communityId = communityId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTimet) {
        this.endTime = endTimet;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}
